#include <bits/stdc++.h>
using namespace std;

void Count(){
    int num[36] = {0};
    char ch;
    while((ch = getchar()) != '\n'){
        if(ch >= '0' && ch <= '9'){
            num[ch - '0']++;
        }
        else if(ch >= 'a' && ch <= 'z'){
            num[ch - 'a' + 10]++;
        }
    }
    for(int i = 0; i < 10; i++){
        if(num[i]) cout << "number " << i << " count is " << num[i] << '\n';
    }
    for(int i = 10; i < 36; i++){
        if(num[i]) cout << "letter " << char('a'+i-10) << " count is " << num[i] << '\n';
    }
}
int main(){
    Count();
    return 0;
}